﻿using BCCommon.Enums;
using BCCommon.PaymentEnums;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCEntity.Common.SystemFinanceFlowRecord
{
    /// <summary>
    /// 系统资金流水记录
    /// </summary>
    public class SystemFinanceFlowRecordEntity
    {
        /// <summary>
        /// 系统资金流水记录Id
        /// </summary>
        public long SystemFinanceFlowRecordId { get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public long? UserId { get; set; }
        /// <summary>
        /// 用户姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 资金流向
        /// </summary>
        public SourceFlowDirectionType FlowDirection { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 余额
        /// </summary>
        public decimal Balance { get; set; }

        /// <summary>
        /// 支付渠道
        /// </summary>
        public PaymentChannelType Channel { get; set; }
        /// <summary>
        /// 流水备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 流水类型(运费,订单网络平台使用费,代收货款,代收货款佣金,充值,提现,保价佣金,赔偿,手续费)
        /// </summary>
        public FlowType FlowType { get; set; }

    }
}
